#ifndef MYACTION_H
#define MYACTION_H

#include <QWidgetAction>
#include <QLineEdit>
#include <QObject>
#include <QSplitter>
class MyAction : public QWidgetAction
{
    Q_OBJECT
signals:
    void getText(const QString& string);

public:

    explicit MyAction(QObject * parent = 0);
    virtual ~MyAction();
protected:

    virtual QSplitter *createWidget(QWidget *parent);

private slots:
    void sentText();
private:
    QLineEdit * lineEdit;
};

#endif // MYACTION_H
